
package com.dstz.form.vo;

import java.io.Serializable;

import com.dstz.base.core.util.StringUtil;
import com.dstz.form.util.JSONObjectUtil;

/**
 * 对象功能:自定义SQL按钮
 * 开发公司:向刚制作
 * 开发人员:xianggang
 */
public class SqlButtonVO implements Serializable {
	
	private static final long serialVersionUID = 23534645L;
	
	// 按钮名称
	private String name;
	
	// 按钮别名
	private String alias;
	
	// 按钮类型
	private String type;
	
	// 全局按钮是否必选
	private Integer mustSelect;
	
	// 按钮点击类型
	private String clickType;
	
	// 按钮图标
	private String icon;
	
	// 按钮样式
	private String btncss;
	
	// 按钮点击提示
	private String warnTxt;
	
	// 成功提示
	private String successTxt;
	
	// 按钮数据变更事件
	private String dataChange;
	
	// 跳转链接/请求地址
	private String url;
	
	// 显示条件
	private String exp;
	
	// 显示条件
	private Integer joinBtnRight;
	
	// 扩展字段
	private String expand;
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getAlias() {
		return alias;
	}
	
	public void setAlias(String alias) {
		this.alias = alias;
	}
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getClickType() {
		if(StringUtil.isEmpty(clickType)) {
			return JSONObjectUtil.getValByKey("hrefSetting.openType", expand);
		}
		return clickType;
	}
	
	public void setClickType(String clickType) {
		this.clickType = clickType;
	}
	
	public String getIcon() {
		return icon;
	}
	
	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	public String getBtncss() {
		return btncss;
	}
	
	public void setBtncss(String btncss) {
		this.btncss = btncss;
	}
	
	public String getWarnTxt() {
		return warnTxt;
	}
	
	public void setWarnTxt(String warnTxt) {
		this.warnTxt = warnTxt;
	}
	
	public String getSuccessTxt() {
		return successTxt;
	}
	
	public void setSuccessTxt(String successTxt) {
		this.successTxt = successTxt;
	}
	
	public String getDataChange() {
		return dataChange;
	}
	
	public void setDataChange(String dataChange) {
		this.dataChange = dataChange;
	}
	
	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getExp() {
		return exp;
	}
	
	public void setExp(String exp) {
		this.exp = exp;
	}
	
	public Integer getMustSelect() {
		return mustSelect;
	}
	
	public void setMustSelect(Integer mustSelect) {
		this.mustSelect = mustSelect;
	}
	
	public Integer getJoinBtnRight() {
		return joinBtnRight;
	}
	
	public void setJoinBtnRight(Integer joinBtnRight) {
		this.joinBtnRight = joinBtnRight;
	}

	public String getExpand() {
		return expand;
	}

	public void setExpand(String expand) {
		this.expand = expand;
	}
	
	
	
}
